package com.doucat.support.component.button;

import android.widget.CompoundButton;

public class CheckItem extends BaseItem {
    private CompoundButton.OnCheckedChangeListener onCheckedChangeListener;
    private boolean check=false;

    public boolean isCheck() {
        return check;
    }

    public void setCheck(boolean check) {
        this.check = check;
    }

    public CheckItem(String text) {
        super(text);
    }

    public CheckItem(String text, CompoundButton.OnCheckedChangeListener onCheckedChangeListener, boolean check) {
        super(text);
        this.onCheckedChangeListener = onCheckedChangeListener;
        this.check = check;
    }
    public CheckItem(String text, boolean check) {
        super(text);
        this.check = check;
    }

    public CompoundButton.OnCheckedChangeListener getOnCheckedChangeListener() {
        return onCheckedChangeListener;
    }

    public void setOnCheckedChangeListener(CompoundButton.OnCheckedChangeListener onCheckedChangeListener) {
        this.onCheckedChangeListener = onCheckedChangeListener;
    }
}
